package com.example.sys.entity.po;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;

/**
 * 菜单(SysMenu)实体类
 *
 * @author makejava
 * @since 2022-03-10 12:04:43
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
@Entity
@Table(name="sys_menu")
public class SysMenu implements Serializable {
    private static final long serialVersionUID = 986918951270877655L;
    /**
    * 主键
    */
    @Id
    private Long menuId;
    /**
    * 菜单名称
    */
    private String menuName;
    /**
    * 菜单code
    */
    private String menuCode;
    /**
    * 菜单图标
    */
    private String menuIcon;
    /**
    * 类型
        1菜单
        2按钮
        3搜索框
        4日期
        5下拉框
        6排序
    */
    private Integer type;
    /**
    * 父级菜单
    */
    private Long pid;
    /**
     * 状态
     */
    private Integer status;
    /**
    * 显示顺序
    */
    private Long showOrder;

}